package one.bugu.android.demon.util;

/**
 * 数据类型处理工具类
 */
public class NumUtils {
    public static String NumberFormat(double f, int m) {
        return String.format("%." + m + "f", f);
    }

    public static float NumberFormatFloat(double f, int m) {
        String strfloat = NumberFormat(f, m);
        return Float.parseFloat(strfloat);
    }

}
